p $tmp=0
while $tmp<$cpu_number
  eval "tvariable $per_cpu_c_%d",$tmp
  eval "tvariable $per_cpu_cy_%d",$tmp
  eval "tvariable $per_cpu_tmp_0_%d",$tmp
  eval "tvariable $per_cpu_c2_%d",$tmp
  eval "tvariable $per_cpu_cy2_%d",$tmp
  eval "tvariable $per_cpu_tmp_1_%d",$tmp
  p $tmp=$tmp+1
end


trace ip_rcv
 commands
    teval $per_cpu_c_0=$per_cpu_c_0+1
    teval $per_cpu_tmp_0_0=$clock
  end

list ip_rcv
trace 442 if ($per_cpu_c_0>2 && $per_cpu_tmp_0_0 != 0)
  commands
    teval $per_cpu_cy_0=$clock-$per_cpu_tmp_0_0+$per_cpu_cy_0
    teval $per_cpu_tmp_0_0=0
  end

trace ip_rcv_finish
 commands
    teval $per_cpu_c2_0=$per_cpu_c2_0+1
    teval $per_cpu_tmp_1_0=$clock
  end

list ip_rcv_finish
trace 358 if ($per_cpu_c2_0>2 && $per_cpu_tmp_1_0 != 0)
  commands
    teval $per_cpu_cy2_0=$clock-$per_cpu_tmp_1_0+$per_cpu_cy2_0
    teval $per_cpu_tmp_1_0=0
  end

define showall
p $tmp=0
p $all1=0
while $tmp<$cpu_number
  eval "p $per_cpu_cy_%d/($per_cpu_c_%d-2)",$tmp,$tmp
  eval "p $per_cpu_cy2_%d/($per_cpu_c2_%d-2)",$tmp,$tmp
  p $tmp=$tmp+1
end
end
